<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\Status;
use Auth;

// 静态页面控制器
class StaticPagesController extends Controller
{
    // 首页
    public function home(){
        $feed_items = [];
        if (Auth::check()) {
            $feed_items = Auth::user()->feed()->paginate(30);
        }
    	return view('static_pages/home', compact('feed_items'));
    }

    // 帮助页
    public function help(){
    	return view('static_pages/help');
    }

    // 关于
    public function about(){
    	return view('static_pages/about');
    }
}
